package com.heiye.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heiye.mapper.ClubMapper;
import com.heiye.pojo.Club;
import com.heiye.service.ClubService;
import com.heiye.vo.ClubDetailVO;
import com.heiye.vo.ClubShowVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ClubService")
public class ClubServiceImpl extends ServiceImpl<ClubMapper, Club> implements ClubService {
    @Autowired
    private ClubMapper clubMapper;

    @Override
    public List<ClubShowVO> selectAllClub() {
        return clubMapper.selectAllClub();
    }

    @Override
    public ClubDetailVO selectClubByCid(int clubId) {
        return clubMapper.selectClubByCid(clubId);
    }
}
